package com.chaokang.controller;

import com.chaokang.dao.entity.AnswerEntity;
import com.chaokang.dao.entity.AnswerNumberEntity;
import com.chaokang.service.AnswerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;

public interface AnswerController {
    //根据问卷id 返回相应的已经回答问卷的相信的回答信息
    List<AnswerNumberEntity> analysisAnswerData(AnswerEntity answerEntity);
    HashMap<String,Integer> insertAnswer(AnswerEntity answerEntity);
    HashMap<String,Integer> updateAnswer(AnswerEntity answerEntity);
    AnswerEntity getAnswerDetailByQuestionnaireId(AnswerEntity answerEntity);
}